package com.woniuxy03;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-06-04 16:31
 */
public class Test01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入字符串");
        String str = sc.next();
        char[] chars = str.toCharArray();
        int big=0,small=0,num=0;
        for(char c:chars){
//            if(c>='a' && c<='z'){
            if(Character.isLowerCase(c)){
                small++;
            }else if(c>='A' && c<='Z'){
                big++;
            }else if(c>='0' && c<='9'){
                num++;
            }
        }
        System.out.println("big="+big);
        System.out.println("small="+small);
        System.out.println("num="+num);
    }
}
